package com.fenrirtec.aepp.common.dao;

import java.util.List;

import com.fenrirtec.aepp.common.condition.MemberCondition;
import com.fenrirtec.aepp.common.model.AuditFlow;
import com.fenrirtec.aepp.common.model.Member;

public interface MemberManageDao {
	Boolean regist(Member member);
	Boolean exists(String memberLoginName);
	List<Member> search(MemberCondition condition);
	Integer count(MemberCondition condition);
	void removeImage(String memberLoginName, Integer attachmentCategory, Integer attachmentId);
	Boolean initAuditFlow(String memberLoginName);
	Boolean audit(String memberLoginName, Integer auditResult, String auditComment, String loginName);
	Member info(String memberLoginName);
	Boolean edit(Member member);
	List<AuditFlow> auditFlowSearch(String memberLoginName);
	void updateAuditResult(AuditFlow auditFlow);
	void insertAuditFlow(AuditFlow auditFlow);
	//显示全部会员信息
	List<Member> findAll();
	//根据输入的查询条件进行会员信息查询
	List<Member> memberSearch(MemberCondition condition);
	//显示会员详细信息
	Member showMember(String memberLoginName);
	//删除会员信息
	void deleteMember(String memberLoginName);
	//修改密码
	void changePassWord(String memberLoginName, String memberLoginOldPassword, String memberLoginNewPassword);
    Boolean deleteAuditFlow(String memberLoginName);
    void changeMemberRank(String memberLoginName, Integer rank, String updateUser);
}
